package com.med.service.impl;

import com.med.entity.GoodsOrderDO;
import com.med.entity.GoodsOrderDetailsDO;
import com.med.entity.MedicineOrderDO;
import com.med.entity.MedicineOrderDetailsDO;
import com.med.mapper.OrderMapper;
import com.med.service.IOrderService;
import com.med.vo.OrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.Collections;
import java.util.List;

/**
 * @BelongsProject: internet-based-healthcare01
 * @BelongsPackage: com.med.service.impl
 * @Author: WWJ
 * @CreateTime: 2025-08-18 16:26
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class OrderService implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<MedicineOrderDO> queryMedicineOrder(OrderVO orderVO) {
        List<MedicineOrderDO> medicineOrderDOS = orderMapper.queryMedicineOrder(orderVO);
        return medicineOrderDOS;
    }

    @Override
    public List<MedicineOrderDetailsDO> queryMedicineOrderDetails(OrderVO orderVO) {
        List<MedicineOrderDetailsDO> medicineOrderDetailsDOS = orderMapper.queryMedicineOrderDetails(orderVO);
        return medicineOrderDetailsDOS;
    }


    @Override
    public List<GoodsOrderDO> queryGoodOrder(OrderVO orderVO) {
        List<GoodsOrderDO> goodsOrderDOS = orderMapper.queryGoodOrder(orderVO);
        return goodsOrderDOS;
    }

    @Override
    public List<GoodsOrderDetailsDO> queryGoodsOrderDetails(OrderVO orderVO) {
        List<GoodsOrderDetailsDO> goodsOrderDetailsDOS = orderMapper.queryGoodsOrderDetails(orderVO);
        return goodsOrderDetailsDOS;
    }
}
